<?php
return [
    'enablePrettyUrl' => TRUE,
    'showScriptName' => FALSE,
    //'class' => 'app\components\BaseUrlManager',
    //'suffix'=>'/',
    'rules' => [
        ['suffix' => '.html', 'pattern' => 'product/<id:\d+>', 'route' => 'product/detail'],
        ['suffix' => '.html', 'pattern' => 'post/<id:\d+>', 'route' => 'post/view'],
        ['suffix' => '', 'pattern' => 'page/<id:\d+>', 'route' => 'page/view'],
        ['suffix' => '.html', 'pattern' => 'post/page-<page:\d+>', 'route' => 'post/index'],

        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
        '<controller:\w+>/<action:\w+>/' => '<controller>/<action>/',
        '<controller:\w+>/' => '<controller>/',
    ]
];